package org.abc.fund.service.trade.request;

import lombok.Data;
import org.abc.fund.entity.trade.TradeOrder;
import org.abc.fund.entity.trade.TradeOrderDetail;

import java.math.BigDecimal;
import java.util.List;

@Data
public class CreateTradeOrderRequest {
    private Long userId;
    private Long accountId;
    private Long productId;
    private TradeOrder.TradeType type;
    private BigDecimal amount;
    private List<Detail> details;

    @Data
    public static class Detail {
        private String fundCode;
        private BigDecimal amount; // 只保留金额
        private TradeOrderDetail.Direction direction;
    }
}
